//
//  TableFooterCell.h
//  TableViewExpand
//
//  Created by Bismarrck on 11-7-17.
//  Copyright 2011年 Tsinghua University. All rights reserved.
//

#import <UIKit/UIKit.h>

#define TableFooterFrame  CGRectMake(0.0f, 0.0f, 320.0f, 60.0f)
#define TableFooterHeight 60.0f

typedef enum {
    
    TableFooterCellNormal,
    TableFooterCellRefresh,
    
} TableFooterState;

@protocol TableFooterDelegate;

@interface TableFooterCell : UITableViewCell
{
    UIButton *refreshButton_;
    UIActivityIndicatorView *indicatorView_;
    id <TableFooterDelegate> delegate;
}

@property (nonatomic, retain) id <TableFooterDelegate> delegate;

- (id)initWithFrame:(CGRect)frame BackgroundColor:(UIColor *)backgroundColor delegate:(id <TableFooterDelegate>)delegate;
- (IBAction)refreshButtonPressed;
- (void)refreshDidFinished;

@end

@protocol TableFooterDelegate 

@required
- (void)updatingWillStart;
- (void)updatingDidFinish;

@end
